﻿using System;
using System.Collections.Generic;
using System.Linq; 
using System.Configuration; 
namespace CBMS.Business
{
    public class SettingsManager
    {
        private static Settings _settings = new Settings();
        public static Settings Settings
        {
            get
            {
                return _settings;
            }
        }

        public static string ConnectString
        {
            get
            {
                return _settings.getConectString;
            }
        }
    }

    public class Settings
    {
        public string this[string key]
        {
            get
            {
                return ConfigurationManager.ConnectionStrings["CBMSEntities"].ConnectionString; 
            }
        }

        public string getConectString
        {
            get
            {
                return ConfigurationManager.ConnectionStrings["CBMSEntities"].ConnectionString; 
            }
        }
    }
}